export const sequentSearch = (array: number[], num: number): number => {
  for (let i = 0; i < array.length; i++) {
    const item = array[i];
    if (item === num) {
      return i;
    }
  }
  return -1;
};
